from common.utils import chromeDriver
from module.homeModule import Home
from module.loginModule import Login
from module.personalCenter import PersonalCenter
from module.purchaseOfGoods import ProcessOfPurchase
from module.registrationModule import Registration

if __name__ == '__main__':
    #注册测试
    Registration().RegisterFailed()
    Registration().RegistreredSuccess()
    #登录测试
    Login().LoginFailed()
    Login().LoginSuccess()
    #首页元素检查
    Home().HomeCheckElement()
    #个人中心交互测试
    PersonalCenter().BasicCheckElement()
    PersonalCenter().AddressManagement()
    #购买流程测试
    ProcessOfPurchase().Purchase()

    chromeDriver.driver.close()